package edu.dayu.proxyTest2;

import edu.dayu.proxyTest.HelloService;
import edu.dayu.proxyTest.HelloServiceImpl;

public class Test {
    public static void main(String[] args) {
        HelloService wrap = (HelloService) HWInvocationHandler.wrap(new HelloServiceImpl(), new TransactionInterceptor());
        wrap.hello();
        //通知之前
        //hello
        //通知之后
    }
}
